<div class="price">
<% new_or_existing = price.new_record? ? 'new' : 'existing' %>

<% prefix = "product[#{new_or_existing}_price_attributes][]" %>
<% fields_for prefix, price do |price_form| -%>
  <p>

     <%= price_form.collection_select "bag_size", @price, :Code, :Name %>
     <%= price_form.text_field :price, :size => '8', :style => 'text-align: right'%> 원

    <%= link_to_function "remove", "$(this).up('.price').remove()"%>

  </p>
<%end -%>
</div>
